package ddemo.viewAndcontroller;

import ddemo.pojo.User;
import ddemo.service.UserService;

import java.util.Scanner;

public class ddcView {

    public static String Ddc(User user){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入您的车牌号");
        String ev=scanner.next();
        int num= UserService.ecRegister(ev,user.getId());
        String ev1=UserService.login(user.getUsername(), user.getPassword()).getEv();
        System.out.println("添加成功,5秒后跳转页面");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return ev;
    }
}
